<%@page import="org.blog.messages.UserSettingsMessage"%>
<%@page import="org.blog.controller.UserController"%>
<%@page import="org.blog.beans.User"%>
<%@ page errorPage="../jsp/exceptionHandler.jsp" %>

<% if(UserController.isLogged(session)) { %>	
					
				<% UserSettingsMessage rm = (UserSettingsMessage)request.getAttribute("message"); 
				   if(rm == null) rm = new UserSettingsMessage();
				   User u = (User)request.getAttribute("user");
				   if(u == null)
					   u = UserController.getUser(session);
				   
				%>
				<%if (u.getStyle().equals("css1")) {%>
				<link rel="stylesheet" type="text/css" href="css/css.css" >
				<%} else { %>
				<link rel="stylesheet" type="text/css" href="css/css2.css" >
				<% } %>
<% } else {%> 
	<link rel="stylesheet" type="text/css" href="css/css.css" >
<%} %>